using UnityEngine;
using System.Collections;

public class ScoreCount : MonoBehaviour {
	
	private LifeManager lifeManager;

	// Use this for initialization
	void Start () {
		this.lifeManager = GameObject.FindWithTag("Player").GetComponent<LifeManager>();
	}
	
	// Update is called once per frame
	void Update () {
        string prefix = "Score: ";
        guiText.text = prefix + Bananensammler.Count;
        guiText.text += "\n" + "Lives: " + lifeManager.lives;
	}
}